package com.itheima.service.db;

import com.itheima.domain.db.SoulConclusion;
import com.itheima.domain.db.SoulDimensions;
import com.itheima.domain.db.SoulQuestionOptions;
import com.itheima.domain.db.SoulQuestions;
import com.itheima.domain.vo.PageBeanVo;

import java.util.List;

public interface SoulTestService {
    //分页查询所有题目
    PageBeanVo findQuestionByPage(Integer page, Integer limit, String startDate, String endDate, String category);

    //根据问题id查询对应的选项
    List<SoulQuestionOptions> findOptionsByQuestionId(Long questionId);

    //根据题目id查询题目详情
    SoulQuestions findQuestionById(Long id);

    //删除题目
    void deleteQuestion(Long id);

    //删除选项
    void deleteOptionById(Long id);

    //修改题目
    void updateQuestion(SoulQuestions question);

    //保存选项
    void saveOptions(SoulQuestionOptions soulQuestionOptions);

    //保存题目
    void saveQuestion(SoulQuestions soulQuestions);

    //根据问题题目和星级查询问题
    SoulQuestions findQuestion(String name, Integer category);

    //分页查询报告
    PageBeanVo findTestReport(Integer page, Integer limit);

    //根据id查询dimensions
    SoulDimensions findDimensionsById(Long dimensions);

    //根据id查询报告
    SoulConclusion findReportById(Long id);

    //修改报告表
    void updateConclusion(SoulConclusion conclusion);

    //修改维度表
    void updateDimensions(SoulDimensions soulDimensions);
}
